Skip to content

Add Data Explorer integration#40

Merged
xfalcox merged 3 commits intomainfrom
feature/data-explorer-integration
Feb 6, 2026
Merged

Add Data Explorer integration#40
xfalcox merged 3 commits intomainfrom
feature/data-explorer-integration

Conversation

@xfalcox
Copy link
Member

@xfalcox xfalcox commented Feb 3, 2026

Adds MCP tools, resources, and a prompt for the Data Explorer plugin.

Resources

  • explorer_schema - Database schema (core tables, compact text format)
  • explorer_schema_tables - Schema for specific/all tables
  • explorer_queries - Saved queries (paginated, sorted by last used)

Tools

  • discourse_get_query - Get query details
  • discourse_run_query - Execute query with params
  • discourse_create_query - Create new query
  • discourse_update_query - Update existing query
  • discourse_delete_query - Delete query

Prompt

  • sql_query - Guided SQL workflow

@xfalcox xfalcox force-pushed the feature/data-explorer-integration branch from fd53107 to d4c9392 Compare February 3, 2026 16:47
@xfalcox xfalcox force-pushed the feature/data-explorer-integration branch from d4c9392 to 512bcf4 Compare February 3, 2026 16:50
SamSaffron and others added 2 commits February 4, 2026 07:41
- Only register Data Explorer resources and SQL query prompt when
  allowAdminTools is enabled, preventing exposure to non-admin users
- Pass allowAdminTools flag through to resource and prompt registries
- Add helper function for safer error message extraction
- Fix case-insensitive table matching and empty input handling
- Use getCached for queries endpoint and avoid mutating cached data
- Handle empty query list gracefully
- Add tests for resource and prompt registration based on auth context
@xfalcox xfalcox merged commit be7be98 into main Feb 6, 2026
2 checks passed
@xfalcox xfalcox deleted the feature/data-explorer-integration branch February 6, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants